package com.library.entity;

import java.sql.Date;
import java.time.LocalDate;

/**
 * 借书证信息
 */
public class Libcard {
    private String sno; //学号
    private String sname; //姓名
    private String type; //类型
    private String collage; //学院
    private String major; //专业
    private java.sql.Date birth; //出生年月日
    private String originPlace; //籍贯
    private String cardType; //状态
    private Integer times; //借了几本
    private String cardNo; //借书证号

    public Libcard() {
    }

    public Libcard(String sno, String sname, String type, String collage, String major, java.sql.Date birth, String originPlace, String cardType, Integer times, String cardNo) {
        this.sno = sno;
        this.sname = sname;
        this.type = type;
        this.collage = collage;
        this.major = major;
        this.birth = birth;
        this.originPlace = originPlace;
        this.cardType = cardType;
        this.times= times;
    }

    public String getSno() {
        return sno;
    }

    public void setSno(String sno) {
        this.sno = sno;
    }

    public String getSname() {
        return sname;
    }

    public void setSname(String sname) {
        this.sname = sname;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getCollage() {
        return collage;
    }

    public void setCollage(String collage) {
        this.collage = collage;
    }

    public String getMajor() {
        return major;
    }

    public void setMajor(String major) {
        this.major = major;
    }

    public java.sql.Date getBirth() {
        return birth;
    }

    public void setBirth(java.sql.Date birth) {
        this.birth = birth;
    }

    public String getOriginPlace() {
        return originPlace;
    }

    public void setOriginPlace(String originPlace) {
        this.originPlace = originPlace;
    }

    public String getCardType() {
        return cardType;
    }

    public void setCardType(String cardType) {
        this.cardType = cardType;
    }

    public Integer getTimes() {
        return times;
    }

    public void setTimes(Integer times) {
        this.times = times;
    }

    public String getCardNo() {
        return cardNo;
    }

    public void setCardNo(String cardNo) {
        this.cardNo = cardNo;
    }

    @Override
    public String toString() {
        return "Libcard{" +
                "sno='" + sno + '\'' +
                ", sname='" + sname + '\'' +
                ", type='" + type + '\'' +
                ", collage='" + collage + '\'' +
                ", major='" + major + '\'' +
                ", birth=" + birth +
                ", originPlace='" + originPlace + '\'' +
                ", cardType='" + cardType + '\'' +
                ", times=" + times +
                ", cardNo='" + cardNo + '\'' +
                '}';
    }
}
